SlideShare a Scribd company logo
1 of 65
PATELLA
MEMOIZATION INTO MEMCACHED DONE IN RESQUE




JEFF DWYER
PATIENTSLIKEME
@JDWYAH
TODAY




Engineers will never be successful if we are the brake on
innovation.
Technique for innovating safely
Learn a bit about meta-programming
TODAY
Setup the problem
Sketch the solution
Nitty Gritty Details
TODAY
Setup the problem
Sketch the solution
Nitty Gritty Details
1) NIH PRESENTATION
IN 4 WEEKS!
Integrate clinicaltrials.gov into our site
Search by trial type
Search by trial phase
Search by trial conditions mapped from Mesh to Meddra
Search by trial facility locations…
  • Location search…
WE HAVE A CHOICE
WHAT IS RIGHT
PostGIS spatial database extensions for PostgreSQL
MongoDB built in support for two dimensional geospatial indexes
AND WHAT IS EASY
sqrt(pow(69.1 * (clinical_trial_locations.lat - 40.948073),2)
  + pow(53.0 * (clinical_trial_locations.lng - -90.36871),2)) AS distance
CHOOSE THE EASY!
CHOOSE THE EASY!
Who knows if location is even important?
Who knows if this project is even important?
MongoDB requires dev setup, automated staging
setup, production setup, monitoring.
BUT, OH GOD THE
HUMANITY
<query plan pic>
BUT, OH GOD THE
HUMANITY
<query plan pic>
2) PATIENT LIKE ME SEARCH
2) PATIENT LIKE ME SEARCH
PATIENT SEARCH RANKING
Very basic search
Plus very complex ordering
Not as many great solutions in this space
N^2 similarity matrix @ 100k patients about 4 TB
And did I mention it’s N^2?
Postgres is an amazingly viable solution.
ELEGANT CODE…
LOVELY SQL…
BUT IT’S JUST THIS
SIDE OF ‘REAL-TIME’
One second queries just don’t fly.
And oh, yeah 16 people hitting it at the same time would
clobber the servers.
3) A FORWARD LOOKING
TIME MACHINE
Maybe those were aberrations?
Crazy right?
A FORWARD LOOKING
TIME MACHINE
AND HERE’S MY CEO PROMISING IT
AT TED
A FORWARD LOOKING
TIME MACHINE
STEPPING BACK
Conflict
  • Relational data is most easily queried relationally.
        • Relational queries don’t necessarily scale and stay in the
          millisecond range
  • Denormalized queries & special solutions scale
        • But take longer to implement
 • (note) This isn’t just SQL, I’m talking about anything slow
We want to experiment/fail fast
  • But we don’t want…
DON’T WANT TO LET THIS:
TURN INTO:
TURN INTO:   :-C
TURN INTO:   :-C
TODAY
Setup the problem
Sketch the solution
Nitty Gritty Details
WHAT WE WANT
Trivially easy way for developers to declare that some
methods are not to be run without adult supervision.




Consistent framework so that ops doesn’t need to be afraid
of new, sometimes expensive experiments.
SOLUTION SPACE
Doing it right all the time
  • Too slow and expensive
  • Slows innovation
SOLUTION SPACE
Memoization
 • Brilliant
 • Functional Programming Nirvana
 • No cache-key shenanagins
      • But also no expiry…
 • There’s just one thing…
      • It only works in a single request
SOLUTION SPACE
Memcached
 • Great
 • Simple to setup.
      • Could be simpler. Handmade cache keys feels wrong.
 • But it doesn’t solve our :-C problem.
      • The first request still slams the server.
 • So you do some cache warming thing…
      • But this is a PITA again.
WHAT COULD MAKE
THIS SIMPLER?
Remove one constraint.
A basic Rails.cache.fetch guarantees you a result
   • But no performance guarantee
Flip that deal around.
  • Guarantee performance
  • Don’t guarantee a result
  • It’s ok not to know the answer!
BUT IT NEEDS A NAME!
TECHNOLOGIES!
Memoization into Memcached with everything calculated in
Resque.
TODAY
Setup the problem
Sketch the solution
Nitty Gritty Details
PATELLA DEVELOPER
INTERFACE
SEND LATER
Super easy way to just do something later while in the same
context.
Most workers are real boring.
Single worker for suffices for many background jobs.
Makes testing/development easier by bypassing Resque in
configuration.
AR extension. Coordinates logging / monitoring.
SENDLATER
   User.send_later :expensive, arg1, arag2
SENDLATER RESQUE
WORKER
MEMOIZATION
SendLater gets things calculated in Resque, but that’s step 1.


We still need:
Memoization.
Stored in memcached.
THIS IS NOT A GOOD SLIDE
PATELLA RESULT
THE METHOD
WITH PATELLA
THE REPLACEMENT
THE ONE THAT DOES
THE WORK
MAYBE IT’S BETTER NOW?
DOG PILE
THE REPLACEMENT
DOG PILE
LONG ARGUMENTS
LONG ARGUMENTS
LONG ARGUMENTS
SOFT EXPIRATION
Memcached is great, but it doesn’t tell you when something
expires.
Our strategy was to add a ‘soft_expiry’
This gets stored along with the result.
Then recalculate if soft_expiry < now()
ABJ
ALWAYS BE JSON
Beware putting not JSON in memcached
You really don’t want to know
META IS MAGIC
REAL LIFE
PRETTY BORING
Except that it works.
       Round 1: Major Pain Points
       Round 2: Magic Scaling Sprinkles
Super alpha gem here:
       https://github.com/kbrock/patella




Alternative https://github.com/csquared/rack-worker
       Very REST-ish, request based.
JOE
@JOERODRIGUEZ
AMY
@AMYNEWELL
KEENAN
@KBROCK
WINFIELD
@WPETERSON

More Related Content

What's hot

Visualizing Work: If you can't see it, you can't manage it
Visualizing Work: If you can't see it, you can't manage itVisualizing Work: If you can't see it, you can't manage it
Visualizing Work: If you can't see it, you can't manage itFernando Cuenca
 
DevOps By The Numbers
DevOps By The NumbersDevOps By The Numbers
DevOps By The NumbersXebiaLabs
 
WinOps Conf 2016 - Gael Colas - Configuration Management Theory: Why Idempote...
WinOps Conf 2016 - Gael Colas - Configuration Management Theory: Why Idempote...WinOps Conf 2016 - Gael Colas - Configuration Management Theory: Why Idempote...
WinOps Conf 2016 - Gael Colas - Configuration Management Theory: Why Idempote...WinOps Conf
 
DevOps, Performance Optimization and the Green Life with Magento
DevOps, Performance Optimization and the Green Life with MagentoDevOps, Performance Optimization and the Green Life with Magento
DevOps, Performance Optimization and the Green Life with MagentoLuis Tineo
 
Lean Kanban India 2017 | Damn… we missed the date again! | Sudipta Lahiri
Lean Kanban India 2017 | Damn… we missed the date again! | Sudipta LahiriLean Kanban India 2017 | Damn… we missed the date again! | Sudipta Lahiri
Lean Kanban India 2017 | Damn… we missed the date again! | Sudipta LahiriLeanKanbanIndia
 
NextBuild 2015 - Swimming upstream in the container revolution
NextBuild 2015 - Swimming upstream in the container revolutionNextBuild 2015 - Swimming upstream in the container revolution
NextBuild 2015 - Swimming upstream in the container revolutionBert Jan Schrijver
 
Software Development 2020 - Swimming upstream in the container revolution
Software Development 2020 - Swimming upstream in the container revolutionSoftware Development 2020 - Swimming upstream in the container revolution
Software Development 2020 - Swimming upstream in the container revolutionBert Jan Schrijver
 
MeetingPoint 2015 - Swimming upstream in the container revolution
MeetingPoint 2015 - Swimming upstream in the container revolutionMeetingPoint 2015 - Swimming upstream in the container revolution
MeetingPoint 2015 - Swimming upstream in the container revolutionBert Jan Schrijver
 
SOLVING MLOPS FROM FIRST PRINCIPLES, DEAN PLEBAN, DagsHub
SOLVING MLOPS FROM FIRST PRINCIPLES, DEAN PLEBAN, DagsHubSOLVING MLOPS FROM FIRST PRINCIPLES, DEAN PLEBAN, DagsHub
SOLVING MLOPS FROM FIRST PRINCIPLES, DEAN PLEBAN, DagsHubDevOpsDays Tel Aviv
 

What's hot (10)

Visualizing Work: If you can't see it, you can't manage it
Visualizing Work: If you can't see it, you can't manage itVisualizing Work: If you can't see it, you can't manage it
Visualizing Work: If you can't see it, you can't manage it
 
DevOps By The Numbers
DevOps By The NumbersDevOps By The Numbers
DevOps By The Numbers
 
WinOps Conf 2016 - Gael Colas - Configuration Management Theory: Why Idempote...
WinOps Conf 2016 - Gael Colas - Configuration Management Theory: Why Idempote...WinOps Conf 2016 - Gael Colas - Configuration Management Theory: Why Idempote...
WinOps Conf 2016 - Gael Colas - Configuration Management Theory: Why Idempote...
 
DevOps, Performance Optimization and the Green Life with Magento
DevOps, Performance Optimization and the Green Life with MagentoDevOps, Performance Optimization and the Green Life with Magento
DevOps, Performance Optimization and the Green Life with Magento
 
Lean Kanban India 2017 | Damn… we missed the date again! | Sudipta Lahiri
Lean Kanban India 2017 | Damn… we missed the date again! | Sudipta LahiriLean Kanban India 2017 | Damn… we missed the date again! | Sudipta Lahiri
Lean Kanban India 2017 | Damn… we missed the date again! | Sudipta Lahiri
 
NextBuild 2015 - Swimming upstream in the container revolution
NextBuild 2015 - Swimming upstream in the container revolutionNextBuild 2015 - Swimming upstream in the container revolution
NextBuild 2015 - Swimming upstream in the container revolution
 
Software Development 2020 - Swimming upstream in the container revolution
Software Development 2020 - Swimming upstream in the container revolutionSoftware Development 2020 - Swimming upstream in the container revolution
Software Development 2020 - Swimming upstream in the container revolution
 
What not to do when adopting Agile
What not to do when adopting AgileWhat not to do when adopting Agile
What not to do when adopting Agile
 
MeetingPoint 2015 - Swimming upstream in the container revolution
MeetingPoint 2015 - Swimming upstream in the container revolutionMeetingPoint 2015 - Swimming upstream in the container revolution
MeetingPoint 2015 - Swimming upstream in the container revolution
 
SOLVING MLOPS FROM FIRST PRINCIPLES, DEAN PLEBAN, DagsHub
SOLVING MLOPS FROM FIRST PRINCIPLES, DEAN PLEBAN, DagsHubSOLVING MLOPS FROM FIRST PRINCIPLES, DEAN PLEBAN, DagsHub
SOLVING MLOPS FROM FIRST PRINCIPLES, DEAN PLEBAN, DagsHub
 

Viewers also liked

patellar dislocation
patellar dislocationpatellar dislocation
patellar dislocationWaseem Khedr
 
Habitual dislocation of patella
Habitual dislocation of patellaHabitual dislocation of patella
Habitual dislocation of patellasushilonlines
 
Knee fractures
Knee fracturesKnee fractures
Knee fracturesGromimd
 
Patella fractures and extensor mechanism injuries
Patella fractures and extensor mechanism injuries Patella fractures and extensor mechanism injuries
Patella fractures and extensor mechanism injuries Hamid Hejrati
 
Patella dislocation by DR.NAVEEN RATHOR
Patella dislocation by DR.NAVEEN RATHORPatella dislocation by DR.NAVEEN RATHOR
Patella dislocation by DR.NAVEEN RATHORDR.Naveen Rathor
 
Patella and tibial plateau fractures
Patella and tibial plateau fractures  Patella and tibial plateau fractures
Patella and tibial plateau fractures MONTHER ALKHAWLANY
 
Mri anatomy of knee Dr. Muhammad Bin Zulfiqar
Mri anatomy of knee Dr. Muhammad Bin ZulfiqarMri anatomy of knee Dr. Muhammad Bin Zulfiqar
Mri anatomy of knee Dr. Muhammad Bin ZulfiqarDr. Muhammad Bin Zulfiqar
 

Viewers also liked (12)

patellar dislocation
patellar dislocationpatellar dislocation
patellar dislocation
 
Patellar Fracture
Patellar FracturePatellar Fracture
Patellar Fracture
 
Habitual dislocation of patella
Habitual dislocation of patellaHabitual dislocation of patella
Habitual dislocation of patella
 
Slideshow: Patella
Slideshow: PatellaSlideshow: Patella
Slideshow: Patella
 
Questions: Patella
Questions: PatellaQuestions: Patella
Questions: Patella
 
Knee fractures
Knee fracturesKnee fractures
Knee fractures
 
Patellar fracture powerpoint
Patellar fracture powerpoint Patellar fracture powerpoint
Patellar fracture powerpoint
 
Patella fractures and extensor mechanism injuries
Patella fractures and extensor mechanism injuries Patella fractures and extensor mechanism injuries
Patella fractures and extensor mechanism injuries
 
Knee cap (Patella) fractures
Knee cap (Patella) fracturesKnee cap (Patella) fractures
Knee cap (Patella) fractures
 
Patella dislocation by DR.NAVEEN RATHOR
Patella dislocation by DR.NAVEEN RATHORPatella dislocation by DR.NAVEEN RATHOR
Patella dislocation by DR.NAVEEN RATHOR
 
Patella and tibial plateau fractures
Patella and tibial plateau fractures  Patella and tibial plateau fractures
Patella and tibial plateau fractures
 
Mri anatomy of knee Dr. Muhammad Bin Zulfiqar
Mri anatomy of knee Dr. Muhammad Bin ZulfiqarMri anatomy of knee Dr. Muhammad Bin Zulfiqar
Mri anatomy of knee Dr. Muhammad Bin Zulfiqar
 

Similar to Patella railsconf 2012

Scaling a High Traffic Web Application: Our Journey from Java to PHP
Scaling a High Traffic Web Application: Our Journey from Java to PHPScaling a High Traffic Web Application: Our Journey from Java to PHP
Scaling a High Traffic Web Application: Our Journey from Java to PHP120bi
 
Scaling High Traffic Web Applications
Scaling High Traffic Web ApplicationsScaling High Traffic Web Applications
Scaling High Traffic Web ApplicationsAchievers Tech
 
Polyglot and Poly-paradigm Programming for Better Agility
Polyglot and Poly-paradigm Programming for Better AgilityPolyglot and Poly-paradigm Programming for Better Agility
Polyglot and Poly-paradigm Programming for Better Agilityelliando dias
 
Where Django Caching Bust at the Seams
Where Django Caching Bust at the SeamsWhere Django Caching Bust at the Seams
Where Django Caching Bust at the SeamsConcentric Sky
 
Automated Scaling of Microservice Stacks for JavaEE Applications
Automated Scaling of Microservice Stacks for JavaEE ApplicationsAutomated Scaling of Microservice Stacks for JavaEE Applications
Automated Scaling of Microservice Stacks for JavaEE ApplicationsJelastic Multi-Cloud PaaS
 
Rsqrd AI: How to Design a Reliable and Reproducible Pipeline
Rsqrd AI: How to Design a Reliable and Reproducible PipelineRsqrd AI: How to Design a Reliable and Reproducible Pipeline
Rsqrd AI: How to Design a Reliable and Reproducible PipelineSanjana Chowdhury
 
Performant Django - Ara Anjargolian
Performant Django - Ara AnjargolianPerformant Django - Ara Anjargolian
Performant Django - Ara AnjargolianHakka Labs
 
Atlassian - Software For Every Team
Atlassian - Software For Every TeamAtlassian - Software For Every Team
Atlassian - Software For Every TeamSven Peters
 
Behavior-Driven Development (BDD) Testing with Apache Spark with Aaron Colcor...
Behavior-Driven Development (BDD) Testing with Apache Spark with Aaron Colcor...Behavior-Driven Development (BDD) Testing with Apache Spark with Aaron Colcor...
Behavior-Driven Development (BDD) Testing with Apache Spark with Aaron Colcor...Databricks
 
What is spatial sql
What is spatial sqlWhat is spatial sql
What is spatial sqlshawty_ds
 
Distributed Deep Learning with Docker at Salesforce
Distributed Deep Learning with Docker at SalesforceDistributed Deep Learning with Docker at Salesforce
Distributed Deep Learning with Docker at SalesforceDocker, Inc.
 
Introducing LCS to Digital Design Verification
Introducing LCS to Digital Design VerificationIntroducing LCS to Digital Design Verification
Introducing LCS to Digital Design VerificationDaniele Loiacono
 
Dr Elephant: LinkedIn's Self-Service System for Detecting and Treating Hadoop...
Dr Elephant: LinkedIn's Self-Service System for Detecting and Treating Hadoop...Dr Elephant: LinkedIn's Self-Service System for Detecting and Treating Hadoop...
Dr Elephant: LinkedIn's Self-Service System for Detecting and Treating Hadoop...DataWorks Summit
 
Building trust within the organization, first steps towards DevOps
Building trust within the organization, first steps towards DevOpsBuilding trust within the organization, first steps towards DevOps
Building trust within the organization, first steps towards DevOpsGuido Serra
 
InteropWG Intro & Vertical Programs (May. 2017)
InteropWG Intro & Vertical Programs (May. 2017)InteropWG Intro & Vertical Programs (May. 2017)
InteropWG Intro & Vertical Programs (May. 2017)Mark Voelker
 
The Diabolical Developers Guide to Performance Tuning
The Diabolical Developers Guide to Performance TuningThe Diabolical Developers Guide to Performance Tuning
The Diabolical Developers Guide to Performance TuningjClarity
 
DefCore: The Interoperability Standard for OpenStack
DefCore: The Interoperability Standard for OpenStackDefCore: The Interoperability Standard for OpenStack
DefCore: The Interoperability Standard for OpenStackMark Voelker
 
Qardio experience with Core Data
Qardio experience with Core DataQardio experience with Core Data
Qardio experience with Core DataDmitrii Ivanov
 
Performance tuning the Spring Pet Clinic sample application
Performance tuning the Spring Pet Clinic sample applicationPerformance tuning the Spring Pet Clinic sample application
Performance tuning the Spring Pet Clinic sample applicationJulien Dubois
 
BTD2015 - Your Place In DevTOps is Finding Solutions - Not Just Bugs!
BTD2015 - Your Place In DevTOps is Finding Solutions - Not Just Bugs!BTD2015 - Your Place In DevTOps is Finding Solutions - Not Just Bugs!
BTD2015 - Your Place In DevTOps is Finding Solutions - Not Just Bugs!Andreas Grabner
 

Similar to Patella railsconf 2012 (20)

Scaling a High Traffic Web Application: Our Journey from Java to PHP
Scaling a High Traffic Web Application: Our Journey from Java to PHPScaling a High Traffic Web Application: Our Journey from Java to PHP
Scaling a High Traffic Web Application: Our Journey from Java to PHP
 
Scaling High Traffic Web Applications
Scaling High Traffic Web ApplicationsScaling High Traffic Web Applications
Scaling High Traffic Web Applications
 
Polyglot and Poly-paradigm Programming for Better Agility
Polyglot and Poly-paradigm Programming for Better AgilityPolyglot and Poly-paradigm Programming for Better Agility
Polyglot and Poly-paradigm Programming for Better Agility
 
Where Django Caching Bust at the Seams
Where Django Caching Bust at the SeamsWhere Django Caching Bust at the Seams
Where Django Caching Bust at the Seams
 
Automated Scaling of Microservice Stacks for JavaEE Applications
Automated Scaling of Microservice Stacks for JavaEE ApplicationsAutomated Scaling of Microservice Stacks for JavaEE Applications
Automated Scaling of Microservice Stacks for JavaEE Applications
 
Rsqrd AI: How to Design a Reliable and Reproducible Pipeline
Rsqrd AI: How to Design a Reliable and Reproducible PipelineRsqrd AI: How to Design a Reliable and Reproducible Pipeline
Rsqrd AI: How to Design a Reliable and Reproducible Pipeline
 
Performant Django - Ara Anjargolian
Performant Django - Ara AnjargolianPerformant Django - Ara Anjargolian
Performant Django - Ara Anjargolian
 
Atlassian - Software For Every Team
Atlassian - Software For Every TeamAtlassian - Software For Every Team
Atlassian - Software For Every Team
 
Behavior-Driven Development (BDD) Testing with Apache Spark with Aaron Colcor...
Behavior-Driven Development (BDD) Testing with Apache Spark with Aaron Colcor...Behavior-Driven Development (BDD) Testing with Apache Spark with Aaron Colcor...
Behavior-Driven Development (BDD) Testing with Apache Spark with Aaron Colcor...
 
What is spatial sql
What is spatial sqlWhat is spatial sql
What is spatial sql
 
Distributed Deep Learning with Docker at Salesforce
Distributed Deep Learning with Docker at SalesforceDistributed Deep Learning with Docker at Salesforce
Distributed Deep Learning with Docker at Salesforce
 
Introducing LCS to Digital Design Verification
Introducing LCS to Digital Design VerificationIntroducing LCS to Digital Design Verification
Introducing LCS to Digital Design Verification
 
Dr Elephant: LinkedIn's Self-Service System for Detecting and Treating Hadoop...
Dr Elephant: LinkedIn's Self-Service System for Detecting and Treating Hadoop...Dr Elephant: LinkedIn's Self-Service System for Detecting and Treating Hadoop...
Dr Elephant: LinkedIn's Self-Service System for Detecting and Treating Hadoop...
 
Building trust within the organization, first steps towards DevOps
Building trust within the organization, first steps towards DevOpsBuilding trust within the organization, first steps towards DevOps
Building trust within the organization, first steps towards DevOps
 
InteropWG Intro & Vertical Programs (May. 2017)
InteropWG Intro & Vertical Programs (May. 2017)InteropWG Intro & Vertical Programs (May. 2017)
InteropWG Intro & Vertical Programs (May. 2017)
 
The Diabolical Developers Guide to Performance Tuning
The Diabolical Developers Guide to Performance TuningThe Diabolical Developers Guide to Performance Tuning
The Diabolical Developers Guide to Performance Tuning
 
DefCore: The Interoperability Standard for OpenStack
DefCore: The Interoperability Standard for OpenStackDefCore: The Interoperability Standard for OpenStack
DefCore: The Interoperability Standard for OpenStack
 
Qardio experience with Core Data
Qardio experience with Core DataQardio experience with Core Data
Qardio experience with Core Data
 
Performance tuning the Spring Pet Clinic sample application
Performance tuning the Spring Pet Clinic sample applicationPerformance tuning the Spring Pet Clinic sample application
Performance tuning the Spring Pet Clinic sample application
 
BTD2015 - Your Place In DevTOps is Finding Solutions - Not Just Bugs!
BTD2015 - Your Place In DevTOps is Finding Solutions - Not Just Bugs!BTD2015 - Your Place In DevTOps is Finding Solutions - Not Just Bugs!
BTD2015 - Your Place In DevTOps is Finding Solutions - Not Just Bugs!
 

Recently uploaded

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 

Recently uploaded (20)

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 

Patella railsconf 2012

Editor's Notes

  1. I have an axe to grind. Forming working teams. Makeup. Engineering described as the brake. Technique: I think it relates well to what Aaron was saying about concurrency. This needs to be easy.Dispel a little meta-programming fear
  2. Going to try to ramp up from problem statement to solution description, to general features of the solution to full blown meta programming analysis.There is a alpha gem, not actually in production. But I’m going to get into the meta programming that wrote it, because honestly it’s more there for display than for you to jump out and use.Moreover I think some people are scared of this stuff and I want to try to clear up a bit about that.
  3. Pattern identification. 3 examples
  4. Trials have centers every center has many recruiting locationsWe have a theory that distance to the center is a big deal. Differentiator.
  5. See! They can all live together happily. I bring you a message of joy and peace
  6. It’s one of those death star queries. It’s like your poor little server is Alderan.
  7. Company name, but we don’t do a great job
  8. Clear weighted factorsJaccard similarityDistance search without any new installsEasily extensible.
  9. Beautiful. Makes my heart sing.Postrgres CTEA partridge in a pear tree
  10. Third example. What kind of pattern is here?
  11. That’s a crazy idea, you can’t do that.
  12. The idea here is that we’re going to be able to predict the course of your disease progression based on everyone else who’s like you.It actually did work.
  13. I’m sure this doesn’t remind you of any of the entrepreneurs you work with.
  14. This is our ops guyThe guy with the pager
  15. Who here knows what memoization is?
  16. Note class method.Expiry. Soft expiration. Why soft? Memcache not super versatile. Good enough for us.No backgrounding. This lets us use the same pattern in places where we always want a result / don’t want to write an async UI.
  17. This is a nice general purpose queuing thing.ANY method in your app get’s auto backgrounding with no setup.
  18. NEXT: we’re going to do those two. Learn about meta-programming. Stick with me!
  19. This is not a good slide. So we’re just going to look at it for a long long time.Until you get it.
  20. Step 1: we have the interface, but what does it return?
  21. ----- Meeting Notes (4/24/12 08:05) -----need to look up in memcahce and return patella result
  22. This is what gets called from Resque
  23. This is not a real
  24. Who knows what this is?
  25. The fetch ALWAYS returns something but doesn’t always kick off a new job.